import { Button, Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap'

export default ({ show, handleConfirmModal, tip, onConfirm }) => {
  return (
    <Modal
      isOpen={show}
      toggle={handleConfirmModal}
      className=" modal-dialog-centered"
    >
      {/* <ModalHeader toggle={handleConfirmModal}>提示</ModalHeader> */}
      <ModalBody>
        <h5>提示</h5>
        {tip}
      </ModalBody>
      <ModalFooter>
        <Button color="primary" onClick={handleConfirmModal} outline>
          取消
        </Button>
        <Button color="primary" onClick={onConfirm}>
          确定
        </Button>
      </ModalFooter>
    </Modal>
  )
}
